#ifndef LOCK_H
#define LOCK_H

typedef volatile int mutex_t;

typedef volatile struct barrier_t_struct {

/* Put barrier_t fields  here */ 

} barrier_t;



void mutex_init(mutex_t *mutex);
void mutex_lock(mutex_t *mutex); 
void mutex_unlock(mutex_t *mutex); 

void barrier_init(barrier_t *barrier, int nthreads);
void barrier_wait(barrier_t *barrier);

#endif // LOCK_H
